package org.homeworkadmin.admin.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.homeworkadmin.admin.domain.Admins;
import org.springframework.boot.autoconfigure.kafka.KafkaProperties;

import java.util.List;

@Mapper
public interface AdminsMapper {

    List<Admins> get(@Param("adminId") Integer adminId,@Param("adminAccount") String adminAccount,@Param("adminPassword") String adminPassword, @Param("adminName") String adminName, @Param("adminIdcard") String adminIdcard,
                     @Param("adminPhone") String adminPhone, @Param("pagesize") int pagesize, @Param("currpage") int currpage);
   int getCount(@Param("adminAccount") String adminAccount,@Param("adminName") String adminName,@Param("adminPhone") String adminPhone);

     int insert(Admins admins);

     int update(Admins admins);


     int delete(@Param("adminId") Long adminId);




}
